import request from './http';
import {SsoAppGroup} from "@/types/entity";

/**
 * app分组 前端接口
 */
export default class SsoAppGroupApi {
  static page(data: SsoAppGroup) {
    let { index, size, ...vo } = data;
    return request.post(`/ssoAppGroup/page/${index}/${size}`, vo);
  }

  static save(data: SsoAppGroup) {
    return request.post<SsoAppGroup>('/ssoAppGroup', data);
  }

  static update(data: SsoAppGroup) {
    return request.put<SsoAppGroup>('/ssoAppGroup', data);
  }

  static delete(ids: number[]) {
    return request.post('/ssoAppGroup/delete', ids);
  }

  static list(data: SsoAppGroup) {
    return request.post('/ssoAppGroup/list', data);
  }

  static getById(id: number) {
    return request.get(`/ssoAppGroup/get/${id}`);
  }


}
